package com.front.mapper;

import com.aaa.vo.PagePlugin;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.front.entity.TbOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xyw
 * @since 2023-08-10
 */
public interface TbOrderMapper extends BaseMapper<TbOrder> {

    /**
     * 查询订单状态
     * @param orderStatusCode
     * @return
     */
    List<TbOrder> queryByIdCode(Integer userId, Integer orderStatusCode);
    /**
     * 权限管理需要的字段
     * @param orderStatusCode
     */
    <E extends IPage<TbOrder>> E  queryMune(E page, @Param("orderStatusCode") Integer orderStatusCode, @Param("tcount") String tcount);

    IPage<TbOrder> queryInstance(PagePlugin<TbOrder> pagePlugin );
}
